package com.momo.upms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@SpringBootApplication
@ComponentScans({
        @ComponentScan("com.momo.common.core"),
        @ComponentScan("com.momo.common.auth")
})
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class MomoUpmsBizApplication {

    public static void main(String[] args) {
        SpringApplication.run(MomoUpmsBizApplication.class, args);
    }

}
